package cn.zpfhomework11;
//员工类
public class Employee {
    String  id;//员工编号
    String name1;//员工姓名
    double	 Salary;//员工底薪
    String bu;
    public void showin(){
        System.out.println("员工信息: 员工编号:"+id+"\n"+"姓名:"+name1+"底薪"+Salary+",所在部门"+bu);
    }
//计算工资方法
    public  double countSalary(double sales){
        double money=0;
        double Salary=4000;
        if(sales<=100000){
            money=Salary+ sales*0.01;
        }else if(sales>100000){
            money=Salary+ sales*0.02;
        }else if(sales>=200000){
            money=Salary+ sales*0.03;
        }else{
            System.out.println("输入错误！");
        }
        return money;
    }


}
